/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mirac
 * Date: 2025-11-18
 * Time: 18:18
 */
public class Solution {
    public int multiply(int A, int B) {
        return find(A, B);
    }

    private int find(int x,int y) {
        if (x == 1) {
            return y;
        }
        return y + find(x-1,y);
    }
}
